package com.laf.manage.domain.dto;

import com.laf.common.validation.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

@Data
@ApiModel(value = "UpdateItemDTO", description = "更新失物信息")
public class LostItemDTO {

    @ApiModelProperty("物品Id")
    @NotNull(message = "物品Id不能为空" , groups = {ValidGroup.Crud.Update.class})
    @Null(message = "物品id后端自动生成" , groups = {ValidGroup.Crud.Create.class})
    private Long id;

    @ApiModelProperty("物品名字")
    @NotBlank(message = "物品名字不能为空")
    private String itemName;

    @ApiModelProperty("物品图片")
    @NotNull(message = "物品图片不能为空")
    private List<String> itemUrls;

    @ApiModelProperty("拾取地点")
    private String pickUpLocation;

    @ApiModelProperty("点位id")
    @NotNull(message = "点位id不能为空")
    private Long pointId;

    @ApiModelProperty("分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;

    @ApiModelProperty("答案一")
    @NotBlank(message = "答案一不能为空")
    private String answerOne;

    @ApiModelProperty("答案二")
    @NotBlank(message = "答案二不能为空")
    private String answerTwo;

    @ApiModelProperty("其他描述")
    private String description;


}
